package com.yugao.fintech.antelope.pay.payment.controller.transfer;

import com.yugao.fintech.antelope.pay.common.annotation.PayCheck;
import com.yugao.fintech.antelope.pay.payment.model.rqrs.transfer.QueryTransferOrderRQ;
import com.yugao.fintech.antelope.pay.payment.process.transfer.QueryTransferOrderProcess;
import com.yugao.fintech.antelope.pay.validation.PaySignGroup;
import com.yugao.fintech.framework.core.response.Resp;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 商户转账单查询controller
 */
@Slf4j
@RestController
@RequestMapping("/pay/transfer")
public class QueryTransferOrderController {
    @Autowired
    private QueryTransferOrderProcess queryTransferOrderProcess;


    /**
     * 查单接口
     */
    @GetMapping("/getTransfer")
    @PayCheck
    public Resp<?> queryTransferOrder(@RequestParam @Validated(value = PaySignGroup.class) QueryTransferOrderRQ rq) {
        return queryTransferOrderProcess.queryTransferOrder(rq);
    }
}
